#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
	int n = 10;
	int i = 0;
	int arr[10][10] = { {1},{1,1} };
	for (i = 1; i < n-1 ; i++) {
		int j = 0;
		arr[i+1][0] = 1;
		arr[i+1][n-1] = 1;
		for (j = 1; j < n; j++) {
			arr[i + 1][j] = arr[i][j] + arr[i][j - 1];
		}
	}
	for (i = 0; i < n; i++) {
		int j = 0;
		for (j = 0; j < n; j++) {
			if (arr[i][j] != 0) {
				printf("%d ", arr[i][j]); }
			else {
				continue;
			}
		}
		printf("\n");
	}
	return 0;
}